import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询开票数据批次分页列表
export function invoiceBatchList(data) {
  return request({
    url: '/tax/taxation/invoice/batch/list',
    method: 'post',
    data: data
  })
}
// 查询开票数据分页列表
export function invoiceList(data) {
  return request({
    url: '/tax/taxation/invoice/list',
    method: 'post',
    data: data
  })
}
// 导出的开票数据
export function invoiceDataDownload(query) {
  return request({
    url: '/tax/taxation/invoice/data/download',
    method: 'post',
    responseType: "blob",
    params: query
  })
}
// 单独修改开票状态和备注
export function invoiceUpdate(data) {
  return request({
    url: '/tax/taxation/invoice/update',
    method: 'put',
    data: data
  })
}
// 单独修改为已补录状态
export function invoiceUpdateAppend(data) {
  return request({
    url: '/tax/taxation/invoice/update/append',
    method: 'put',
    data: data
  })
}
// 开票资料列表
export function invoiceFileList(invoiceId) {
  return request({
    url: '/tax/invoice/file/list/' + invoiceId,
    method: 'get'
  })
}

// 管理企业级联选择树
export function companyAdminTwoCascade() {
  return request({
    url: '/tax/company/admin/two/cascade',
    method: 'get'
  })
}